package com.woniu.aimd.controller;

import com.woniu.aimd.pojo.entity.StudentClass;
import com.woniu.aimd.service.StudentclassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
@RestController
@CrossOrigin
@RequestMapping("/sc")
public class StudentclassController {
    @Autowired
    private StudentclassService studentclassService;
    /**
     * 根据学生id分步查询班级信息
     */
    @RequestMapping("/getClassInfoByUserid")
    public List<StudentClass> getClassInfoByUserid(String userId){
        return studentclassService.getClassInfoByUserid(userId);
    }
}
